package com.ruoyi.energize.service;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.ruoyi.energize.domain.CashOrder;
import com.ruoyi.energize.domain.YancaoStoreDailySalesReport;

/**
 * energizeService接口
 *
 * @author ruoyi
 * @date 2023-05-24
 */
public interface ICashOrderService
{
    /**
     * 查询energize
     *
     * @param id energize主键
     * @return energize
     */
    public CashOrder selectCashOrderById(Long id);

    /**
     * 查询energize列表
     *
     * @param cashOrder energize
     * @return energize集合
     */
    public List<CashOrder> selectCashOrderList(CashOrder cashOrder);

    /**
     * 新增energize
     *
     * @param cashOrder energize
     * @return 结果
     */
    public int insertCashOrder(CashOrder cashOrder);

    /**
     * 修改energize
     *
     * @param cashOrder energize
     * @return 结果
     */
    public int updateCashOrder(CashOrder cashOrder);

    /**
     * 批量删除energize
     *
     * @param ids 需要删除的energize主键集合
     * @return 结果
     */
    public int deleteCashOrderByIds(Long[] ids);

    /**
     * 删除energize信息
     *
     * @param id energize主键
     * @return 结果
     */
    public int deleteCashOrderById(Long id);

    List<YancaoStoreDailySalesReport> selectCashOrderListByDate(LocalDateTime dateTimeMin, LocalDateTime dateTimeMax);

    /**
     * 通过OID连接字符串查询包含烟草的订单销售总金额
     * @param oidString
     * @return
     */
    BigDecimal selectCashOrderByOidStr(String oidString);
}
